package com.builder;

public class DeveloperComputerBuilder implements ComputerBuilder {
    private Computer computer = new Computer();

    @Override
    public Computer build() {
        // 建造结果
        return computer;
    }

    @Override
    public void setCpu() {
        // 建造过程
        this.computer.setCpu("i7");
    }

    @Override
    public void setGpu() {
        // 建造过程
        this.computer.setGpu("集成");
    }

    @Override
    public void setHard() {
        // 建造过程
        this.computer.setHard("1t");
    }
}
